package com.trafficsys.modules.licenseplaterecognition.service.impl;

import com.trafficsys.modules.entity.Rule;
import com.trafficsys.modules.licenseplaterecognition.service.RuleService;
import com.trafficsys.modules.loginAndRegister.dao.RuleDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RuleServiceImpl implements RuleService {
    @Autowired
    private RuleDao ruleDao;

    @Override
    public List<Rule> getAllRules() {
        return ruleDao.selectList(null);
    }
}
